package com.example.demo.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.annotation.Bean;

import java.util.Date;

/**
 * @author wan
 * @version 1.0.0
 * @Description 小说实体
 * @createTime 2021年08月06日 10:07:48
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Novel {
    private String novelName;
    private String author;
    private String path;
    private String imagePath;
    private Date createTime;
    private Date updateTime;

    public Novel(String novelName) {
        this.novelName = novelName;
    }

    public Novel(String novelName, String author, String path, String imagePath) {
        this.novelName = novelName;
        this.author = author;
        this.path = path;
        this.imagePath = imagePath;
    }

}
